<template>
  <div class="beauticians">
    <div class="container">
      <h1>专业美容师团队</h1>
      <p class="subtitle">我们的美容师都经过专业培训，拥有丰富的经验和专业知识</p>
      
      <div class="beauticians-grid">
        <div class="beautician-card" v-for="beautician in beauticians" :key="beautician.id">
          <div class="beautician-image">
            <img :src="beautician.image" :alt="beautician.name" />
            <div class="overlay">
              <div class="social-links">
                <span class="social-icon">📧</span>
                <span class="social-icon">📞</span>
              </div>
            </div>
          </div>
          <div class="beautician-info">
            <h3>{{ beautician.name }}</h3>
            <p class="position">{{ beautician.position }}</p>
            <p class="experience">{{ beautician.experience }} 年经验</p>
            <p class="specialty">擅长: {{ beautician.specialty }}</p>
            <div class="skills">
              <span class="skill-tag" v-for="skill in beautician.skills" :key="skill">{{ skill }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Beauticians',
  data() {
    return {
      beauticians: [
        {
          id: 1,
          name: '张美丽',
          position: '首席美容师',
          experience: 8,
          specialty: '面部护理与抗衰老',
          skills: ['面部护理', '抗衰老', '皮肤管理', '美容咨询'],
          image: new URL('@/assets/zhangmeili.png', import.meta.url).href
        },
        {
          id: 2,
          name: '李优雅',
          position: '高级美容师',
          experience: 6,
          specialty: '眼部护理与美容',
          skills: ['眼部护理', '微整形', '美容护肤', '客户咨询'],
          image: new URL('@/assets/liyouya.png', import.meta.url).href
        },
        {
          id: 3,
          name: '王芳华',
          position: '专业美容师',
          experience: 5,
          specialty: '身体SPA与按摩',
          skills: ['身体SPA', '按摩疗法', '芳香疗法', '放松护理'],
          image: new URL('@/assets/wangfanghua.png', import.meta.url).href
        },
        {
          id: 4,
          name: '陈晓雯',
          position: '美容顾问',
          experience: 7,
          specialty: '美容产品与方案设计',
          skills: ['产品咨询', '方案设计', '皮肤分析', '个性化服务'],
          image: new URL('@/assets/chengxiaowen.png', import.meta.url).href
        }
      ]
    }
  }
}
</script>

<style scoped>
.beauticians {
  padding: 4rem 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

.beauticians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.beautician-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.beautician-card:hover {
  transform: translateY(-5px);
}

.beautician-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.beautician-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.beautician-card:hover .beautician-image img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.beautician-card:hover .overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

.beautician-info {
  padding: 1.5rem;
}

.beautician-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.position {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience {
  color: #666;
  margin-bottom: 0.5rem;
}

.specialty {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 500;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .beauticians-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
}
</style>